home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / amos / AMOS_0795.lzh / AMOSLIST / 000157_amos-request@svcs1.digex.net_Wed Jul 26 12:44:58 1995.msg < prev    next >
Internet Message Format  |  1995-08-04  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id MAA29264;  for  ; Wed, 26 Jul 1995 12:43:54 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id KAA04877 for amos-out; Wed, 26 Jul 1995 10:15:36 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id KAA04873 for <amos-list@svcs1.digex.net>; Wed, 26 Jul 1995 10:15:34 -0400
  4. Received: from mach1.wlu.ca (mach1.wlu.ca [192.54.242.17]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id KAA11853;  for <amos-list@access.digex.net> ; Wed, 26 Jul 1995 10:15:32 -0400
  5. Received: by mach1.wlu.ca (5.65/1.35)
  6.     id AA29851; Wed, 26 Jul 95 10:11:43 -0400
  7. Date: Wed, 26 Jul 1995 10:11:42 -0400 (EDT)
  8. From: Phil Martin <mart4678@mach1.wlu.ca>
  9. Sender: Phil Martin <mart4678@mach1.wlu.ca>
  10. Reply-To: Phil Martin <mart4678@mach1.wlu.ca>
  11. Subject: Re: Challenge!
  12. To: S93044370@acs.saultc.on.ca
  13. Cc: amos-list@access.digex.net
  14. In-Reply-To: <01HTB5A5A65E0003HG@ACS.SAULTC.ON.CA>
  15. Message-Id: <Pine.3.89.9507261056.A29000-0100000@mach1.wlu.ca>
  16. Mime-Version: 1.0
  17. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  18. Status: RO
  19. X-Status: 
  20.  
  21. On Wed, 26 Jul 1995 S93044370@acs.saultc.on.ca wrote:
  22.  
  23. > I have a challenge for everyone on this list, I just hope people will take
  24. > me up on it.
  25. >     I wrote about this before, but got no response, but I'll try again.
  26. > What I need is a routine to transfer RGB colour values to HSV (Hue, Saturation,
  27. > value) and back to RGB. I've tried to do it myself, but I'm completey stumped
  28.  
  29. The Colorspace FAQ (available on rtfm.mit.edu) deals with this, and 
  30. there's also code for it in Computer Graphics: Principles & Practice by 
  31. Foley and Van Dam.
  32.  
  33. You'll find the FAQ in:
  34.  
  35. 95.05.19 00:47      81k pub/usenet-by-group/comp.graphics/Color_space_FAQ
  36.  
  37. > A friend of mine has gone from HSV to RGB in 35 lines of code, but surely it
  38. > can be done more efficently than that. I need it for a palette editor I'm
  39. > writing, it would be very useful to me.
  40.  
  41. It's really not that difficult, and yes, you should be able to do it in 
  42. less than 35 lines of code, more like 20, possibly less. But of those 
  43. 20-something lines, only a bit over 1/3 will execute for any given 
  44. conversion...
  45.  
  46. Good luck,
  47. --
  48. Phil Martin.                             mart4678@mach1.wlu.ca
  49. GCS/S -d+ !p c++ u+ e+(*) m--- s-/++ n++ h-- f+ w+ t r- y?(**)
  50. "They'll leave you stripped of all that they can get to,
  51.  And wait for you to come back again."
  52.  
  53.